

package inet.examples.rtp.unicast1;

import ned.DatarateChannel;
import inet.nodes.rtp.RTPHost;
import inet.nodes.inet.Router;
import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator;


network RTPUnicast1
{
    types:
        channel ethernet extends DatarateChannel
        {
            delay = normal(0.00015s, 0.00005s);
            datarate = 10Mbps;
        }
    submodules:
        host1: RTPHost {
            parameters:
                IPForward = false;
                profileName = "inet.transport.rtp.RTPAVProfile";
                destinationAddress = "host4";
                portNumber = 5004;
                bandwidth = 8000;
                @display("p=150,50");
        }
        host2: RTPHost {
            parameters:
                IPForward = false;
                profileName = "inet.transport.rtp.RTPAVProfile";
                destinationAddress = "host4";
                portNumber = 5004;
                bandwidth = 8000;
                @display("p=250,150");
        }
        host3: RTPHost {
            parameters:
                IPForward = false;
                profileName = "inet.transport.rtp.RTPAVProfile";
                destinationAddress = "host4";
                portNumber = 5004;
                bandwidth = 8000;
                @display("p=150,250");
        }
        host4: RTPHost {
            parameters:
                IPForward = false;
                profileName = "inet.transport.rtp.RTPAVProfile";
                destinationAddress = "host1";
                portNumber = 5004;
                bandwidth = 8000;
                @display("p=50,150");
        }
        router1: Router {
            parameters:
                @display("p=150,150");
            gates:
                pppg[];

        }
        configurator: IPv4NetworkConfigurator {
            @display("p=58,32");
        }
    connections:
        host1.pppg++ <--> ethernet <--> router1.pppg++;
        host2.pppg++ <--> ethernet <--> router1.pppg++;
        host3.pppg++ <--> ethernet <--> router1.pppg++;
        host4.pppg++ <--> ethernet <--> router1.pppg++;
}
